#include "PyrDown.h"
#include "../utils/Logger.h"

PyrDown::PyrDown() {
}

PyrDown::~PyrDown() {
}

IplImage* PyrDown::apply(const IplImage* in) {
    Log << "Applying pyr down effect." << endl;
    IplImage *out = cvCreateImage(cvSize(in->width/2+1, in->height/2+1), in->depth, in->nChannels);
    cvPyrDown(in, out);
    return out;
}

